//
//  SearchView.swift
//  新浪微博
//
//  Created by 胡不归是大虾 on 16/9/22.
//  Copyright © 2016年 胡不归是大虾. All rights reserved.
//

import UIKit

@IBDesignable class SearchView: UIButton {
    class func loadSearchView ()->(UIButton)
    {
        let nib = UINib(nibName: "SearchView", bundle: nil)
        let searchView = nib.instantiate(withOwner: nil, options: nil).last as!  UIButton
        return searchView
    }
    
    override func awakeFromNib() {
        self.layer.cornerRadius = 15
        self.bounds.size.width = UIScreen.main.bounds.width
    }

}
